package sealte.test.crazyjavalearning.test.AOP;

public class Woodpecker implements AnimalBehavior {

	@Override
	public void jump(boolean canJump) {
		if(canJump){
			System.out.println("Woodpecher-01 is jumping...");
		}else{
			System.out.println("Woodpecher-01 can't jump.");
		}
	}

	@Override
	public void run(boolean canRun) {
		if(canRun){
			System.out.println("Woodpecher-01 is running...");
		}else{
			System.out.println("Woodpecher-01 can't run.");
		}
	}

	@Override
	public void fly(boolean canFly) {
		if(canFly){
			System.out.println("Woodpecher-01 is flying...");
		}else{
			System.out.println("Woodpecher-01 can't fly.");
		}
	}

}
